-- GENERATED SPELL FOR [Niffelem Forefather] --


function spell0_29974(pUnit, Event) --@Ice Spike,n/a--
pUnit:FullCastSpellOnTarget(57454,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29974', 2000, 1)
end

function Sorts_29974(pUnit, Event)
local choix_sorts_29974 = math.random(0, 0)
if choix_sorts_29974 == 0 then
pUnit:RegisterEvent('spell0_29974', 1, 1)
end
end

function mob29974_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29974', math.random(1500, 3000), 1)
end

function mob29974_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29974_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29974_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29974, 1, 'mob29974_Action')
RegisterUnitEvent(29974, 2, 'mob29974_Leave')
RegisterUnitEvent(29974, 3, 'mob29974_Kill')
RegisterUnitEvent(29974, 4, 'mob29974_Die')
